package com.lwz.order.client;

import com.lwz.util.orderVo.CourseWebVoOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author Lw中
 * @date 2020/11/20 19:22
 */

@Component
@FeignClient(name = "service-edu")
public interface EduClient {

    /**
     * 通过课程id获取订单中的需要的课程信息
     * @param courseId
     * @return
     */
    @PostMapping("/eduservice/courseFront/getOrderCourseInfo/{courseId}")
    public CourseWebVoOrder getOrderCourseInfo(@PathVariable String courseId);

}
